namespace ProduceBasicData.Api.DTO
{
    /// <summary>
    /// 工艺报工数量DTO类
    /// </summary>
    public class CraftReportQuantityDto
    {
        /// <summary>
        /// 工艺ID
        /// </summary>
        public int CraftId { get; set; }

        /// <summary>
        /// 工艺名称
        /// </summary>
        public string CraftName { get; set; } = string.Empty;

        /// <summary>
        /// 报工数量
        /// </summary>
        public int Quantity { get; set; }

        /// <summary>
        /// 工艺编码
        /// </summary>
        public string CraftCode { get; set; } = string.Empty;

        /// <summary>
        /// 工艺描述
        /// </summary>
        public string CraftDesc { get; set; } = string.Empty;
    }

    /// <summary>
    /// 工艺报工数量图表数据DTO类
    /// </summary>
    public class CraftReportChartDto
    {
        /// <summary>
        /// 工艺名称列表（用于X轴）
        /// </summary>
        public List<string> CraftNames { get; set; } = new List<string>();

        /// <summary>
        /// 报工数量列表（用于Y轴）
        /// </summary>
        public List<int> Quantities { get; set; } = new List<int>();

        /// <summary>
        /// 详细数据列表
        /// </summary>
        public List<CraftReportQuantityDto> Details { get; set; } = new List<CraftReportQuantityDto>();

        /// <summary>
        /// 总报工数量
        /// </summary>
        public int TotalQuantity { get; set; }

        /// <summary>
        /// 工艺总数
        /// </summary>
        public int CraftCount { get; set; }
    }
}
